package com.neugh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(resultMap = "BaseResultMap")
public class Orde implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单Id
     */
      @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderNum;

    /**
     * 地址外键
     */
    private Integer addressId;

    /**
     * 用户外键
     */
    private Integer userId;

    /**
     * 商品外键 -1 代表手机充值商品外键默认值 没有意义
     */
    private Integer shopId;

    @TableField(exist = false)
    private String shopImg;

    @TableField(exist = false)
    private String shopPrice;

    @TableField(exist = false)
    private String shopName;

    /**
     * 订单数量 1 手机充值默认1
     */
    private Integer orderUme;

    /**
     * 充值手机号 只有订单类型未手机充值时有效
     */
    private String rPhone;

    /**
     * 订单价格
     */
    private String orderPrice;

    /**
     * 支付宝交易号
     */
    private String alipayNum;

    /**
     * 成交时间
     */
    private String orderTime;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 订单类型 1-7 去显示不同的订单详情
     */
    private Integer orderTypeId;

    @TableField(exist=false)
    public String userPhone;

    @TableField(exist=false)
    public String userName;


    public static final String ORDERID = "orderId";

    public static final String ORDERNUM = "orderNum";

    public static final String ADDRESSID = "addressId";

    public static final String USERID = "userId";

    public static final String SHOPID = "shopId";

    public static final String ORDERUME = "orderUme";

    public static final String RPHONE = "rPhone";

    public static final String ORDERPRICE = "orderPrice";

    public static final String ALIPAYNUM = "alipayNum";

    public static final String ORDERTIME = "orderTime";

    public static final String ORDERSTATUS = "orderStatus";

    public static final String ORDERTYPEID = "orderTypeId";

}
